package com.cyyang.shop.service.impl;

import java.util.List;

import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import com.cyyang.shop.bean.Category;
import com.cyyang.shop.mapper.CatMapper;
import com.cyyang.shop.service.CatService;

@Service(timeout = 10000)
public class CatServiceImpl implements CatService {

	@Autowired
	CatMapper catMapper;
	@Override
	public List<Category> getTree(Integer id) {
		return catMapper.getTree(id);
	}
	@Override
	public List<Category> getTree1() {
		// TODO Auto-generated method stub
		return catMapper.getTree1();
	}
	@Override
	public void add(Category c) {
		catMapper.add(c);		
	}
	@Override
	public void del(Category c) {
		catMapper.del(c);		
	}
	@Override
	public void update(Category c) {
		catMapper.update(c);		
	}

}
